import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/Index'
import Category from '@/pages/Category'
import Cart from '@/pages/Cart'
import User from '@/pages/User'
import Search from '@/pages/Search'
import SearchList from '@/pages/SearchList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index.html'
    },
    {
      path: '/index.html',
      name: 'index',
      component: Index
    },
    {
      path: '/category.html',
      name: 'category',
      component: Category
    },
    {
      path: '/cart.html',
      name: 'cart',
      component: Cart
    },
    {
      path: '/user.html',
      name: 'user',
      component: User
    },
    {
      path: '/search.html',
      name: 'search',
      component: Search
    },
    {
      path: '/search_list.html',
      name: 'searchlist',
      component: SearchList
    }
  ]
})
